package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.BoneCheckAdminMapper;
import com.ruoyi.domain.BoneCheckAdmin;
import com.ruoyi.service.IBoneCheckAdminService;

/**
 * 骨密度检查Service业务层处理
 * 
 * @author xiaohe
 * @date 2023-11-10
 */
@Service
public class BoneCheckAdminServiceImpl implements IBoneCheckAdminService 
{
    @Autowired
    private BoneCheckAdminMapper boneCheckAdminMapper;

    /**
     * 查询骨密度检查
     * 
     * @param id 骨密度检查主键
     * @return 骨密度检查
     */
    @Override
    public BoneCheckAdmin selectBoneCheckAdminById(Long id)
    {
        return boneCheckAdminMapper.selectBoneCheckAdminById(id);
    }

    /**
     * 查询骨密度检查列表
     * 
     * @param boneCheckAdmin 骨密度检查
     * @return 骨密度检查
     */
    @Override
    public List<BoneCheckAdmin> selectBoneCheckAdminList(BoneCheckAdmin boneCheckAdmin)
    {
        return boneCheckAdminMapper.selectBoneCheckAdminList(boneCheckAdmin);
    }

    /**
     * 新增骨密度检查
     * 
     * @param boneCheckAdmin 骨密度检查
     * @return 结果
     */
    @Override
    public int insertBoneCheckAdmin(BoneCheckAdmin boneCheckAdmin)
    {
        return boneCheckAdminMapper.insertBoneCheckAdmin(boneCheckAdmin);
    }

    /**
     * 修改骨密度检查
     * 
     * @param boneCheckAdmin 骨密度检查
     * @return 结果
     */
    @Override
    public int updateBoneCheckAdmin(BoneCheckAdmin boneCheckAdmin)
    {
        return boneCheckAdminMapper.updateBoneCheckAdmin(boneCheckAdmin);
    }

    /**
     * 批量删除骨密度检查
     * 
     * @param ids 需要删除的骨密度检查主键
     * @return 结果
     */
    @Override
    public int deleteBoneCheckAdminByIds(Long[] ids)
    {
        return boneCheckAdminMapper.deleteBoneCheckAdminByIds(ids);
    }

    /**
     * 删除骨密度检查信息
     * 
     * @param id 骨密度检查主键
     * @return 结果
     */
    @Override
    public int deleteBoneCheckAdminById(Long id)
    {
        return boneCheckAdminMapper.deleteBoneCheckAdminById(id);
    }
}
